#include "stdafx.h"
#include "process.h"
//#include "sobelVideoController.h"
#include "OpticalflowVideoController.h"
#include "cxcore.h"      // include core library interface

void process(IplImage* img, float* penergy, float* penergydiff, float* pmutualinfo, float* pnmutualinfo)
{

	//SobelVideoController::getInstance()->processImage(img);
	OpticalflowVideoController::getInstance()->processImage(img, penergy,  penergydiff,  pmutualinfo,  pnmutualinfo);

	cvShowImage( "Result", 
			//SobelVideoController::getInstance()->getOutputImage());
			OpticalflowVideoController::getInstance()->getOutputImage());
	HWND hWnd= (HWND)cvGetWindowHandle("Result");
	UpdateWindow(hWnd); // force the window to repaint
}

